package com.example.transaction.repository;

import com.example.transaction.model.TransactionRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface TransactionRecordRepository extends JpaRepository<TransactionRecord, Long> {
    
    Optional<TransactionRecord> findByTransactionId(String transactionId);
    
    List<TransactionRecord> findByFromAccountOrToAccount(String fromAccount, String toAccount);
}